@import "../../style/utils";

.header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    text-align: center;
    background-color: #4285f4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.16),0 1px 4px rgba(0,0,0,0.23);
}

@include mq( '.header', '870px', (
    padding-left: 60px,
    padding-right: 23px
))

.logo{
    display: inline-block;
    width: 170px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 75px;
    top: 15px;
    background-image: url('');
}

.hamburger{
    position: absolute;
    top: 5px;
    left: 18px;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    &:before{
        color: #fff;
        content: "\F0C9";
        line-height: 44px;
        position: absolute;
        top: 0;
        left: 12px;  
        @extend .iconfont;
    }
}

@include mqfromto( '.search', '1200px', '1050px',(
    margin-left: calc(100% / 2 - 700px / 2)
));

@include mq( '.logo', '1049px',(
    display: none
));

@include mq( '.hamburger', '870px', (
    left: 10px
))

.hamburger_act{
    animation: hamburger_act_ 0.5s;
}

@keyframes hamburger_act_{
    0% {background: transparent;}
    50% {background: rgba(255,255,255,0.2);}
    100% {background: transparent;}
}

.search{
    display: inline-block;
    padding: 7px 0;
    position: relative;
    width: 700px;
    input{
        width: 100%;
        height: 40px;
        padding-left: 40px;
        line-height: 26px;
        border: none;
        font-size: 22px;
        background: rgba(255,255,255,0.2);
        color: #fff;
        border-radius: 2px;
        &::-webkit-input-placeholder{
            font-size:16px;
            padding-left:4px;
            padding-top:1px;
            color: #fff;
        }
    }
    i{
        position: absolute;
        color: #fff;
        top: 20px;
    }
    .loading{
        visibility: visible;
        animation: loading 0.8s linear infinite;
    }
}

.iconsearch{
    @extend .icon-search;
    left: 10px;
}

.iconloading{
    visibility: hidden;
    font-size: 18px;
    top: 19px;
    right: 10px;
    @extend .icon-loading;
}

@keyframes loading{
    0%   {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@include mq( '.search', '870px', (
    width: 100%
));
